package com.example.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.R;
import com.example.system.dto.RoleDTO;
import com.example.system.entity.Role;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 王鹤蒲
 * @since 2023-08-13
 */
public interface IRoleService extends IService<Role> {
    public R selectAll(int currentPage, int pageSize, String name);

    public R save(RoleDTO roleDTO);

    public R deleteById(Integer id);

    public R deleteByIds(Integer []ids);

    public R getRoleByRoleId(Integer roleId);

    public R edit( Integer id,RoleDTO roleDTO);

    public R editRoleStatus(Integer id, Boolean status);
}
